var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var 人 = (function () {
    function 人() {
    }
    人.prototype.fun1 = function () {
        var str = '关于人的方法。。。';
        console.log(str);
        return str;
    };
    return 人;
}());
var 晶晶 = (function (_super) {
    __extends(晶晶, _super);
    function 晶晶() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    晶晶.prototype.fun2 = function (sex) {
        console.log(sex);
        return sex;
    };
    return 晶晶;
}(人));
var use = new 晶晶();
use.name = '馨儿';
use.fun1();
use.sex = '女';
use.sex = '男';
if (use instanceof 晶晶) {
    use.sex = '啊！女的';
}
function addFun2(useType) { }
var useType = new 晶晶();
useType.sex = '女';
useType.name = 'jinjin';
useType.age = 22;
useType.fun1();
useType.fun2('男');
addFun2(useType);
